﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddorEditNews.aspx.cs"
    Inherits="kim.AddorEditNews" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>发布资讯</title>
    <link rel="stylesheet" type="text/css" href="../img/style.css" />
    <script src="../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script src="../ckeditor/config.js" type="text/javascript"></script>
    <link href="/kim/style/css.css" rel="stylesheet" type="text/css" />
    
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <b>您当前的位置：首页 &gt;
            <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
            &gt; 信息修改</b>
    </div>
    <div style="padding-bottom: 10px;">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr style="height: 30px;">
            <th colspan="2" align="left">
                <asp:Label ID="labtitle2" runat="server"></asp:Label>
            </th>
        </tr>
        <tr style="height: 30px;">
            <td width="15%" align="right">
                标题：
            </td>
            <td width="85%">
                <input class="input required number" type="text" id="txtTitle" datatype="*2-200"
                    nullmsg="请输入新闻标题！" errormsg="输入新闻标题字符在2-200个之内！" runat="server" width="284px" />
            </td>
        </tr>
        <tr style="height: 30px;" id="EnTitle" runat="server" visible="false">
            <td width="15%" align="right">
                英文标题：
            </td>
            <td width="85%">
                <input class="input required number" type="text" id="txtEnTitle" datatype="/^[a-zA-Z_-\s]{5,60}$/"
                    errormsg="输入新闻英文标题字符在5-60个之内且必须为英文！" runat="server" width="284px" ignore="ignore" />
            </td>
        </tr>
        <tr style="height: 30px;">
            <td width="15%" align="right">
                上传时间：
            </td>
            <td width="85%">
                <input class="input required number" type="text" id="txtTime" runat="server" width="284px" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })"/>
            </td>
        </tr>
        <tr style="height: 30px;" id="jj" runat="server"  visible="false">
            <td width="15%" align="right">
                简介：
            </td>
            <td width="85%">
                <textarea name="editor1" cols="50" rows="7" id="TxtJJ" runat="server"  datatype="*2-200"
                    nullmsg="请输入简介！" errormsg="输入简介字符在2-200个之内！" ignore="ignore"></textarea>
            </td>
        </tr>
        <tr style="height: 30px;" id="upimg" runat="server" >
            <td align="right" valign="top">
                图片：
            </td>
            <td>
                <img id="Headpic" runat="server" src="" width="100" alt="" style="float: left" />
                <asp:HiddenField ID="txtImgUrl_max" runat="server" />
                <asp:HiddenField ID="txtImgUrl_min" runat="server" />
                <a href="javascript:;" class="files">
                    <input type="file" id="FileUpload" name="FileUpload" onchange="Upload('SingleFile', 'txtImgUrl_max', 'FileUpload','1','1');" /></a>
                <span class="uploading">正在上传，请稍候...</span>
            </td>
        </tr>
         <tr style="height: 30px;" id="xxt"  runat="server"  visible="false" >
            <td align="right" valign="top">
                学校图：
            </td>
            <td>
                <img id="Headpic2" runat="server" src="" width="100" __designer:mapid="4f6" />
                &nbsp;&nbsp;&nbsp;
                <asp:FileUpload ID="FileUpload2" runat="server" />
                &nbsp;<asp:Button ID="btn_sc2" runat="server" Text="上传" 
                    onclick="btn_sc2_Click"  />
            </td>
        </tr>
        <tr style="height: 30px;">
            <td align="right">
                序列值：
            </td>
            <td>
                <input class="input required number" type="text" id="txt_postion" datatype="n" nullmsg="请输入序列值！"
                    errormsg="请输入阿拉伯数字！" runat="server" value="0" ignore="ignore" />
                <%--目前最大序列值为:
                <asp:Label ID="lb_po" runat="server" Text=""></asp:Label>,您只要比最大序列值大1就可以排到第一位。--%>
            </td>
        </tr>
        <tr style="height: 30px;">
            <td align="right">
                是否显示：
            </td>
            <td>
                <asp:CheckBox ID="CbIsShow" runat="server"  Checked="true"/>
                打勾的为，在前台页面显示。
            </td>
        </tr>
        <tr style="height: 30px;" id="Con1" runat="server" >
            <td align="right" valign="top">
                内容：
            </td>
            <td>
                <textarea name="editor1" cols="20" rows="2" class="ckeditor" id="txt_Content" runat="server"></textarea>
                
            </td>
        </tr>
        
       
    </table>
    <div style="margin-top: 10px; text-align: center;">
        <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" OnClick="btnSave_Click" />
        &nbsp; &nbsp;&nbsp;<asp:Label ID="lbmsg" runat="server" Text="" ForeColor="Red"></asp:Label>
    </div>
    </form>
    <script src="/kim/scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../Js/Validform_v5.3_min.js" type="text/javascript"></script>
    <script src="../../kim/scripts/jquery.form.js" type="text/javascript"></script>
    <script src="/kim/scripts/function.js" type="text/javascript"></script>
    <script src="../../kim/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</body>
</html>
